# Maintainer: Pedro Filipe <xpecex@outlook.com>
pkgname=gobuster
pkgver=3.0.1
pkgrel=0
pkgdesc="Directory/File, DNS and VHost busting tool written in Go"
url="https://github.com/OJ/gobuster"
arch="all !mips !mips64"
license="Apache-2.0"
makedepends="go>=1.10"
source="$pkgname-$pkgver.tar.gz::https://github.com/OJ/gobuster/archive/v$pkgver.tar.gz"

build() {
	go build -ldflags "-s -w" \
		-gcflags="all=-trimpath=$GOPATH/src" \
		-asmflags="all=-trimpath=$GOPATH/src" \
		-o build/gobuster
}

check() {
	make test
}

package() {
	install -Dm755 "./build/gobuster" "$pkgdir/usr/bin/gobuster"
}

sha512sums="52afcadb26863a111c3aae1902a06c44307ec3f705f076e1cba8169c265e85059f75bc3ddf6c0ca1007753f0603dbf65ceea7414bfc8f236df3f79d99d98361c  gobuster-3.0.1.tar.gz"
